package com.ruoyi.project.system.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.customer.mapper.ZzCustomerMapper;
import com.ruoyi.project.system.customer.domain.ZzCustomer;
import com.ruoyi.project.system.customer.service.IZzCustomerService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-10-29
 */
@Service
public class ZzCustomerServiceImpl implements IZzCustomerService 
{
    @Autowired
    private ZzCustomerMapper zzCustomerMapper;

    @Override
    public List<ZzCustomer> findAll() {
        return zzCustomerMapper.seleteCustomerAll();
    }

    /**
     * 查询【请填写功能名称】
     * 
     * @param customerId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public ZzCustomer selectZzCustomerById(Integer customerId)
    {
        return zzCustomerMapper.selectZzCustomerById(customerId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param zzCustomer 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ZzCustomer> selectZzCustomerList(ZzCustomer zzCustomer)
    {
        return zzCustomerMapper.selectZzCustomerList(zzCustomer);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param zzCustomer 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertZzCustomer(ZzCustomer zzCustomer)
    {
        return zzCustomerMapper.insertZzCustomer(zzCustomer);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param zzCustomer 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateZzCustomer(ZzCustomer zzCustomer)
    {
        return zzCustomerMapper.updateZzCustomer(zzCustomer);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZzCustomerByIds(String ids)
    {
        return zzCustomerMapper.deleteZzCustomerByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param customerId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteZzCustomerById(Integer customerId)
    {
        return zzCustomerMapper.deleteZzCustomerById(customerId);
    }
}
